Repository navigation
release v0.1.10 - #26
Merged
Merged
Conversation
This was referenced Nov 28, 2026
ranxianglei
pushed a commit
that referenced
this pull request
Nov 29, 2026
…ger, config-reference CI guard fixes for the id-envelope rewrite (KDD #26 / PR #7955): - reference/architecture.md: add src/agent/branch-collect.ts (P2 collector) + src/server/id-reconcile.ts (P1 identity gate) - docs/lifecycle.md §1: register BILI_ID_ENVELOPE_STRICT (P1 escape hatch) - website/config-reference/process.yaml: add storage.msgidPolicy seed (en/zh/ja)
ranxianglei
added a commit
that referenced
this pull request
Dec 2, 2026
- reference/architecture.md: list src/agent/inline-engine-ref.ts + src/agent/inline-origin.ts (architecture-docs guard) - docs/lifecycle.md 2.6: register BILI_REGISTRY_SNAPSHOT (lifecycle-ledger-guard) - website/config-reference/env-only.yaml: BILI_REGISTRY_SNAPSHOT entry + regenerated config-doc index blocks (docs-coverage guard)
ranxianglei
pushed a commit
that referenced
this pull request
Dec 2, 2026
…FULL_DDL rows (review of #8131) Review drive-by fixes for the KDD #26 split-build PR — comments and docs only, zero behavior change: - src/agent/inline-engine-ref.ts: the rationale said 'tsup runs with splitting: false' — the PR flips it to true. Reworded: any statically resolvable import (even a literal dynamic one) is resolved at bundle time and pulls the engine's chunk graph into the entry's load-time imports; the opaque specifier keeps it out of the static set. - src/agent/inline-origin.ts: 'dist stays one file per entry' is no longer true under splitting; reworded to the chunk-graph rationale. - src/registry.ts: 'inlined into every entry at a different depth' is stale — the registry now lands in one shared chunk (dist/chunks/); the two-candidate path logic is unchanged and still correct. - src/agent/fetch-chain/index.ts: removed a JSDoc block left floating after the INLINE_ORIGIN const moved to inline-origin.ts. - src/storage/mysql.ts: the #4008 rationale described hoisting to the top of dist/index.js under splitting:false; under splitting the value import would resolve at the mysql chunk's load instead. Rule unchanged (still enforced by check-dist-external), mechanism reworded. - docs/configuration.{md,zh-CN,ja}: collapsed a pre-existing accidental duplicate BILI_TEST_FORCE_FULL_DDL row in the hand-maintained table (both rows arrived in 1ba0af3; kept the more accurate 'unset (egress-plane creation gate applies)' default wording, merged the #7735 citation). BILI_REGISTRY_SNAPSHOT itself is already registered by ec73a3a (generated index table + yaml seed + lifecycle ledger) — no second row added.
ranxianglei
pushed a commit
that referenced
this pull request
Dec 2, 2026
…FULL_DDL rows (review of #8131) Review drive-by fixes for the KDD #26 split-build PR — comments and docs only, zero behavior change: - src/agent/inline-engine-ref.ts: the rationale said 'tsup runs with splitting: false' — the PR flips it to true. Reworded: any statically resolvable import (even a literal dynamic one) is resolved at bundle time and pulls the engine's chunk graph into the entry's load-time imports; the opaque specifier keeps it out of the static set. - src/agent/inline-origin.ts: 'dist stays one file per entry' is no longer true under splitting; reworded to the chunk-graph rationale. - src/registry.ts: 'inlined into every entry at a different depth' is stale — the registry now lands in one shared chunk (dist/chunks/); the two-candidate path logic is unchanged and still correct. - src/agent/fetch-chain/index.ts: removed a JSDoc block left floating after the INLINE_ORIGIN const moved to inline-origin.ts. - src/storage/mysql.ts: the #4008 rationale described hoisting to the top of dist/index.js under splitting:false; under splitting the value import would resolve at the mysql chunk's load instead. Rule unchanged (still enforced by check-dist-external), mechanism reworded. - website/config-reference/env-only.yaml: BILI_TEST_FORCE_FULL_DDL had TWO seed entries (both landed in 1ba0af3), so the generated param-ref table rendered the row twice. Dropped the 'off' default entry, kept the more accurate 'unset (egress-plane creation gate applies)' one and merged the #7735 citation into it; regenerated docs/configuration.{md,zh-CN,ja} + website files via tools/gen-config-docs.mjs (docs-sync clean). - BILI_REGISTRY_SNAPSHOT (new in this PR) is already registered by ec73a3a (seed + generated index + lifecycle ledger) — nothing to add.
ranxianglei
added a commit
that referenced
this pull request
Dec 2, 2026
The shared-chunk layout relocates shared code from dist/<entry>.js into dist/chunks/bili-*.js — one directory level below the entries the old fixed-depth import.meta.url formulas were written for. CI caught three of them; a full audit fixed the rest before runtime users would: - claude-native-bootstrap / claude-mcp-entry proxyScriptPath: sibling dist/index.js resolved to dist/chunks/index.js -> the hook child died MODULE_NOT_FOUND before binding (hook e2e red in CI). Now walk up from wherever the code actually sits until the real bin appears. - plugin-install selfPackageRoot: dirname/.. returned dist/, not the package root, from a chunk -> launcher selfDistFile()=dist/dist/index.js and the package.json reads aimed at dist/. Walk up to package.json. - plugin/mcp version reads: fixed one-level-up -> try the chunk depth too (banners no longer report 'dev' from chunked code). - agent/pi self-registration entryFile: import.meta.url could be a chunk path -> #2185 children would load the chunk as the entry. Register the canonical dist/agent/pi.js (registration is pi-only; dev checkouts degrade to pre-#2185). Tests: - port-zone-live makeV2Script copied dist/index.js to the repo root; the copy's ./chunks/* imports resolved to <root>/chunks (missing) -> the #1723 upgrade-overlap reds. The v2 copy now lives in dist/ next to its template. - egress-session-footprint queried table eg_debug; the DDL creates egress_debug (2026-11-30 owner ruling rename). The test landed via #8064 after the last green master CI run, so it never ran on CI — pre-existing, fails identically on clean master, fixed here.
timothybrush
pushed a commit
to timothybrush/billion-context
that referenced
this pull request
Dec 2, 2026
…KDD ranxianglei#26, ranxianglei#8074) Every tsup entry re-inlined the shared module graph (undici, node-forge, acp-kernel, launcher, store, ...) plus a 1.05MB model-snapshot JSON, so the 20 entries carried ~12x duplication (dist 62MB; pi-native.js 6.95MB) and pi's cold start paid ~0.8s just importing the entry (ranxianglei#8074). - src/inline-engine.ts becomes its own dist entry; host entries (pi, omp, dsh, opencode native, and pi.ts/opencode.ts via native-intercept) load it lazily through src/agent/inline-engine-ref.ts with an opaque runtime specifier the bundler cannot resolve — spawn mode (every package's default) never parses or loads the engine graph. INLINE_ORIGIN/INLINE_HOSTNAME move to src/agent/inline-origin.ts (single source; the fetch-chain duplicate copy is removed). - registry-snapshot.json is no longer JSON-imported into every entry; src/registry.ts reads dist/registry-snapshot.json at runtime (copied by scripts/write-build-info.mjs), degrading to a null snapshot when the file is missing (same discipline as the zod/jimp lazy externals). - tsup: splitting: true + chunkNames "chunks/bili-[hash]" — shared modules land once in dist/chunks/ and entries become thin loaders with static relative imports into files that exist. Every lane ships the WHOLE package (npm tarball, in-place self-update, dsh profile bundle), so multi-file entries are safe; the old one-file-per-entry contract is replaced by KDD ranxianglei#26 (AGENTS.md + design-decisions.md). - gates: check-dist-import-annotations now fails only when a relative import()/require() target is MISSING (the ranxianglei#1234 ENOENT class), letting real chunk references through; check-dist-thin-install gains a probe that runs from a scratch whole-package install and verifies the lazy engine spec + registry snapshot load. - no runtime-dependency change (KDD ranxianglei#1 intact); zod/jimp/mysql2 lazy external forms untouched; the dsh-native-client browser build (separate single-file CJS) untouched. Sizes: dist 62MB -> 7.8MB (pi-native 6.95MB -> 8.9KB, index 6.79MB -> 132KB, mcp 1.73MB -> 646B); npm pack 36.9MB -> 10.2MB unpacked; pi-native entry import ~0.8s -> ~170ms (page-cached disk).
ranxianglei
pushed a commit
to bluesmilery/billion-context
that referenced
this pull request
Dec 2, 2026
Resolve tsup.config.ts entry-array conflict: keep both the PR's dsh-native-compaction entry and master's inline-engine entry (KDD ranxianglei#26 dist chunking). Union resolution; build + typecheck verified locally.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release v0.1.10
Ships the auto-update reliability fixes.
Includes (since v0.1.9)
biliprocess now checks npm on startup (10s after listen) regardless of the cross-process throttle file, so a stale/polluted throttle can't suppress the first check. Subsequent checks share the throttle normally. (PR fix: make update throttle logs unambiguous #25)throttled — last checked Ns ago, retry in Ms(two monotonic axes instead of a single countdown that could look like it's going backwards).Pre-flight
Release mechanism
Merge triggers
release.yml→ npm publish--tag latest+ tagv0.1.10.After 0.1.10 is on npm, the currently-installed 0.1.9 auto-updates on its next check (startup or 3-min cycle) and notifies once.